package gupao.concurrency.api.sample;

import gupao.concurrency.utils.Utils;
import lombok.extern.slf4j.Slf4j;

@Slf4j
public class ApiMockImpl implements ApiMock{

    @Override
    public String api1() {
        log.info("api 1 is invoked");
        Utils.sleepIgnoreExp(1000);
//        return "good job";
        throw new RuntimeException("test exp");
    }

    @Override
    public String api2() {
        log.info("api 2 is invoked");
        Utils.sleepIgnoreExp(800);
        return "great";
    }
}
